package com.lee.nimingduixiang;

import java.util.ArrayList;
import java.util.Scanner;

public class User {
   private static ArrayList<UserInfo> userList = new ArrayList<>() ;


   public static void register(UserInfo userInfo) {
       userList.add(userInfo);
   }

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("--- 用户录入系统 ----");
        System.out.println("请输入用户名");
        String username = scanner.next();
        System.out.println("请输入手机号");
        String phone = scanner.next();
        System.out.println("请输入密码");
        String password = scanner.next();
        System.out.println("请输入确认密码");
        String confirmPassowrd = scanner.next();
        System.out.println("请输入电子邮箱");
        String email = scanner.next();
        System.out.println("请输入性别");
        String sex = scanner.next();
        register(new UserInfo(username,password,phone,confirmPassowrd,email,sex));
    }

}
